<template>
	<view class="indexContainer">
		<u-loading-page :loading="ifLoad" loading-text="美味加载中..." icon-size="45"></u-loading-page>
		<view class="contentContainer">
			<view class="title">
				隐私条款
			</view>
			<view class="content">
				欢迎您使用肯德基点餐小程序，请您仔细阅读并充分理解<text class="policy">《隐私政策》</text>，如您同意<text class="policy">《隐私政策》</text>的全部内容，清点击“同意”开始使用我们的服务。
			</view>
			<view class="agree" @click="changeLoad">
				同意
			</view>
			<view class="disagree" @click="changeLoad">
				不同意，仅浏览
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				ifLoad:false,
			}
		},
		onLoad() {

		},
		methods: {
			changeLoad(){
				this.ifLoad=true
				setTimeout(()=>{
					this.ifLoad=false
					uni.redirectTo({
						url:'../homePage/homePage'
					})
				},1000)
			}
		}
	}
</script>

<style>
	page{
		background-color: rgb(171,37,42);
	}
</style>

<style lang="scss">
	.contentContainer{
		color:#333333;
		margin: 0 auto;
		margin-top: 400rpx;
		background-color: #FFF;
		width: 90%;
		border-radius: 20rpx;
		display: flex;flex-direction: column;align-items: center;
		>view{
			width: 90%;
		}
		.title{
			font-size: 30rpx;
			margin-top: 60rpx;
			margin-bottom: 20rpx;
			display: flex;align-items: center;justify-content: center;
		}
		.content{
			font-size: 28rpx;
			.policy{
				color:rgb(214,47,53);
			}
		}
		.agree{
			margin-top: 60rpx;
			background-color: rgb(214,47,53);
			height: 80rpx;
			border-radius: 40rpx;
			color:#fff;
			font-size: 30rpx;
			display: flex;align-items: center;justify-content: center;
		}
		.disagree{
			margin-top: 40rpx;
			font-size: 28rpx;
			margin-bottom: 40rpx;
			display: flex;align-items: center;justify-content: center;
		}
	}
</style>
